package com.htthorizon.model.domain;

import java.io.Serializable;
import java.util.Date;

/**
 * 模型消息流程
 * @TableName model_message_flow
 */
public class ModelMessageFlow implements Serializable {
    /**
     * 
     */
    private Long id;

    /**
     * 模型消息ID
     */
    private Long modelMessageId;

    /**
     * 创建ID
     */
    private Long createId;

    /**
     * 创建人
     */
    private String createBy;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 回复消息
     */
    private String replyMessage;

    /**
     * 模型消息状态
     */
    private Integer modelMessageStatus;

    private String fileUrl;

    private String status;

    private String forwardText;

    private String nextUser;
    private Long nextUserId;

    public String getNextUser() {
        return nextUser;
    }

    public void setNextUser(String nextUser) {
        this.nextUser = nextUser;
    }

    public Long getNextUserId() {
        return nextUserId;
    }

    public void setNextUserId(Long nextUserId) {
        this.nextUserId = nextUserId;
    }

    public String getForwardText() {
        return forwardText;
    }

    public void setForwardText(String forwardText) {
        this.forwardText = forwardText;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 模型消息ID
     */
    public Long getModelMessageId() {
        return modelMessageId;
    }

    /**
     * 模型消息ID
     */
    public void setModelMessageId(Long modelMessageId) {
        this.modelMessageId = modelMessageId;
    }

    /**
     * 创建ID
     */
    public Long getCreateId() {
        return createId;
    }

    /**
     * 创建ID
     */
    public void setCreateId(Long createId) {
        this.createId = createId;
    }

    /**
     * 创建人
     */
    public String getCreateBy() {
        return createBy;
    }

    /**
     * 创建人
     */
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    /**
     * 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 回复消息
     */
    public String getReplyMessage() {
        return replyMessage;
    }

    /**
     * 回复消息
     */
    public void setReplyMessage(String replyMessage) {
        this.replyMessage = replyMessage;
    }

    /**
     * 模型消息状态
     */
    public Integer getModelMessageStatus() {
        return modelMessageStatus;
    }

    /**
     * 模型消息状态
     */
    public void setModelMessageStatus(Integer modelMessageStatus) {
        this.modelMessageStatus = modelMessageStatus;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ModelMessageFlow other = (ModelMessageFlow) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getModelMessageId() == null ? other.getModelMessageId() == null : this.getModelMessageId().equals(other.getModelMessageId()))
            && (this.getCreateId() == null ? other.getCreateId() == null : this.getCreateId().equals(other.getCreateId()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getReplyMessage() == null ? other.getReplyMessage() == null : this.getReplyMessage().equals(other.getReplyMessage()))
            && (this.getModelMessageStatus() == null ? other.getModelMessageStatus() == null : this.getModelMessageStatus().equals(other.getModelMessageStatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getModelMessageId() == null) ? 0 : getModelMessageId().hashCode());
        result = prime * result + ((getCreateId() == null) ? 0 : getCreateId().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getReplyMessage() == null) ? 0 : getReplyMessage().hashCode());
        result = prime * result + ((getModelMessageStatus() == null) ? 0 : getModelMessageStatus().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", modelMessageId=").append(modelMessageId);
        sb.append(", createId=").append(createId);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", replyMessage=").append(replyMessage);
        sb.append(", modelMessageStatus=").append(modelMessageStatus);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}